package com.wtcrazy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "user")
//实体类层
public class User {
    private String username;
    private String nickname;
    //    @JsonIgnore//忽略字段，不展示给前端
    private String password;
    private String phone;
    private String mail;
    private String avatar;
    @TableId(value = "id", type = IdType.AUTO)//下划线会自动转驼峰
    private String id;
    private String token;
}
